default: build
    @echo "{{GREEN}}build success{{NORMAL}}"
build:
    cjpm build
raygui: _raygui
    @echo "{{GREEN}}build raygui success{{NORMAL}}"
_raygui:    
    mkdir -p target/raygui
    cp raygui/src/raygui.h raygui/src/raygui.c
    gcc -o target/raygui/libraygui.dylib raygui/src/raygui.c -shared -DRAYGUI_IMPLEMENTATION $(pkg-config --libs --cflags raylib) -fPIC
    gcc -o target/raygui/raygui.o -c raygui/src/raygui.c -DRAYGUI_IMPLEMENTATION $(pkg-config --cflags raylib)
    rm raygui/src/raygui.c
    ar rcs target/raygui/libraygui.a target/raygui/raygui.o && rm target/raygui/raygui.o
clean:
    rm -f raygui/src/raygui.c
